package com.bosicloud.cmb.ibp.api.manager.dao;

import com.bosicloud.cmb.ibp.api.manager.commom.model.IbpApiDocs;
import com.bosicloud.cmb.ibp.api.manager.commom.vo.ApiMethodListVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;


public interface IbpApiDocsMapper extends Mapper<IbpApiDocs> {

    Integer insertIbpApiDocs(IbpApiDocs ibpApiDocs);

    /**
     * 查询API方法列表
     *
     * @param apiId apiId
     * @return List<IbpApiDocs>
     */
    List<ApiMethodListVO> searchApiMethodListByApiId(@Param("apiId") Integer apiId);


    /**
     * 查询ApiDocs信息
     *
     * @param docsId docsId
     * @return IbpApiDocs
     */
    IbpApiDocs searchApiDocsInfoById(@Param("docsId") Integer docsId);


    /**
     * 查询ApiDocs信息
     *
     * @param apiId apiId
     * @return List<IbpApiDocs>
     */
    List<IbpApiDocs> searchApiDocsListByApiId(Integer apiId);

    /**
     * 根据apiId删除IbpApiDocs
     *
     * @param apiId
     * @return Integer
     */
    Integer deleteIbpApiDocsByApiId(Integer apiId);

}
